Skip to content

gh-149504: Fix reentrant site startup processing#149516

Open
zsol wants to merge 2 commits intopython:mainfrom
zsol:zsol/gh-149504-reentrant-site-startup
Open

gh-149504: Fix reentrant site startup processing#149516
zsol wants to merge 2 commits intopython:mainfrom
zsol:zsol/gh-149504-reentrant-site-startup

Conversation

@zsol
Copy link
Copy Markdown
Member

@zsol zsol commented May 7, 2026

Copy and clear pending startup file data before executing import lines or .start entry points so recursive site.addsitedir() calls process a separate batch.

Fixes #149504

Copy and clear pending startup file data before executing import lines or .start entry points so recursive site.addsitedir() calls process a separate batch.
@StanFromIreland
Copy link
Copy Markdown
Member

Updated to fix some failures we introduced on the main branch.

@zsol zsol marked this pull request as ready for review May 7, 2026 23:13
@zsol zsol requested a review from FFY00 as a code owner May 7, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.15] Re-entrant calls to site.addsitedir() can fail (affecting uv run)

2 participants